package com.ks.core.constant;

public class Const {
    // -------------各服务通用 ---------
    /**
     * 删除标识：正常
     */
    public static final int DEL_FLAG_NORMAL = 0;
    /**
     * 删除标识：已删除
     */
    public static final int DEL_FLAG_DEL = 1;
    /**
     * 版本号
     */
    public static final String VERSION = "0.1";

    public static final String SUCCESS_MESSAGE = "success";


    public static class OrgBase {
        //组织 机构类型  1：组织 2：机构  3：部门  4：工作组
        public static final Integer ORGANIZATION_TYPE = 1;

        public static final Integer MECHANISM_TYPE = 2;

        public static final Integer DEPARTMENT_TYPE = 3;

        public static final Integer WORKING_TYPE = 4;

        //小程序授权状态

        public static final Integer IS_AUTHORIZATION = 1;

        //组织机构状态 0:启用  1：停用
        public static final Integer ORG_BASE_ENABLE = 0;

        public static final Integer ORG_BASE_STOP = 1;

        //授权方式 L1   L2
        public static final String AUTHORIZATION_METHOD_L1 = "L1";

        public static final String AUTHORIZATION_METHOD_L2 = "L2";

    }


    /**
     * 系统用户中的变量
     */
    public static class SysUser {
        //系统用户类型
        public static final String SysUserType = "S";
        //租户用户类型
        public static final String UserBaseType = "T";
        //审核通过
        public static final Integer IS_OK = 1;
        //审核拒绝
        public static final Integer IS_NOT_OK = 2;
        //是否是管理员
        public static final Integer YES = 1;
        public static final Integer NO = 0;
    }

    /**
     * 请求第三方系统中的参数
     */
    public static class Wx {

        public static final Integer COMPONENT_APP_ID = 1;

        public static final Integer COMPONENT_TOKEN = 2;

        public static final Integer COMPONENT_SECRET = 4;

        public static final Integer COMPONENT_TICKET = 5;

        public static final Integer TENANT_SYSTEM_ROOT_URL = 11;
    }

    public static class Cms {
        public static final Integer COMMENT_TYPE = 1;

        public static final Integer AGREE_TYPE = 2;

        public static final Integer VIEW_TYPE = 3;

        public static final Integer SHARE_TYPE = 4;
    }
}
